package main

import (
	"fmt"
	"os"
)

func main() {
	file, err := os.Open("aaa.txt")

	if err != nil {
		fmt.Println("出现错误", err)

	} else {
		fmt.Println(file) //打印文件变量
	}
}

//出现错误 open aaa.txt: The system cannot find the file specified.
